/**
 * @description  : 自定义 popup
 * @descriptionDetail : 自定义 popup
 * @copyright    : 浙江烟草
 * @author       : mc
 * @create       : 2022-10-03 17:07:41
 */
<template>
  <view>
    <u-popup style="width: 180px; position: fixed;top: 45px;left: 200px;" mode="top" border-radius="14" v-model="value">
      <slot></slot>
    </u-popup>
  </view>
</template>

<script>
export default {
  name: 'ZPopover',
  props: {
    value: {
      type: Boolean,
      default: false
    }
  },
  data () {
    return {
      // open: this.value
    }
  },
  watch: {
    value: {
			immediate: true,
			handler(val) {
        console.log("打开", val);
				this.$emit("change", val);
			}
		},
  },
  methods: {
  },
}
</script>

<style lang="scss" scoped>

</style>